//
//  Product.h
//  XRmenu
//
//  Created by yangxh on 11-3-31.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <CoreData/CoreData.h>

@class Catalogs;
@class Cigarette;
@class Dish;
@class Drink;
@class ProductTag;
@class SeasonDish;
@class SetMeal;
@class SpecCode;

@interface Product :  NSManagedObject  
{
}

@property (nonatomic, retain) NSString * pPosition;
@property (nonatomic, retain) NSNumber * pIsRecommend;
@property (nonatomic, retain) NSNumber * pType;
@property (nonatomic, retain) NSString * pSpellCode;
@property (nonatomic, retain) NSString * pEntityId;
@property (nonatomic, retain) NSNumber * pID;
@property (nonatomic, retain) NSString * pUnit;
@property (nonatomic, retain) NSString * pProductId;
@property (nonatomic, retain) NSDate * pCheckInTime;
@property (nonatomic, retain) NSString * pCapacity;
@property (nonatomic, retain) NSString * pProductNo;
@property (nonatomic, retain) NSNumber * pCommentNum;
@property (nonatomic, retain) NSString * pName;
@property (nonatomic, retain) NSNumber * pScoreCount;
@property (nonatomic, retain) NSNumber * pSalePrice;
@property (nonatomic, retain) NSNumber * pStatus;
@property (nonatomic, retain) NSNumber * pColor;
@property (nonatomic, retain) Catalogs * rsToCatalogs;
@property (nonatomic, retain) Cigarette * rsToCigarette;
@property (nonatomic, retain) SetMeal * rsInSetMeal;
@property (nonatomic, retain) Drink * rsToDrink;
@property (nonatomic, retain) NSSet* rsToProductTag;
@property (nonatomic, retain) SetMeal * rsToSetMeal;
@property (nonatomic, retain) SeasonDish * rsToSeasonDish;
@property (nonatomic, retain) NSSet* rsToSpecCode;
@property (nonatomic, retain) Dish * rsToDish;

@end


@interface Product (CoreDataGeneratedAccessors)
- (void)addRsToProductTagObject:(ProductTag *)value;
- (void)removeRsToProductTagObject:(ProductTag *)value;
- (void)addRsToProductTag:(NSSet *)value;
- (void)removeRsToProductTag:(NSSet *)value;

- (void)addRsToSpecCodeObject:(SpecCode *)value;
- (void)removeRsToSpecCodeObject:(SpecCode *)value;
- (void)addRsToSpecCode:(NSSet *)value;
- (void)removeRsToSpecCode:(NSSet *)value;

@end

